﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="TokenManagement.aspx.cs" Inherits="SaleDiscount.Portal.TokenManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
    
        function FetchToken() {
            $dialog('<%=ResolveUrl("~/TokenEdit.aspx") %>', { width: 920, height: window.top.$common.getClientBounds().height - 100 }, function (result) {
                $get('<%=btnReload.ClientID %>').click();
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanelFlow" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Panel1" runat="server" DefaultButton="btnFetchToken">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            Current User:<%=EbayUserName %>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Status:<%=Status %>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            <asp:Button ID="btnFetchToken" SkinID="Button120" runat="server" OnClientClick="FetchToken();return false;"
                                Text="Fetch Token"></asp:Button>
                                   <asp:Button ID="btnReload" runat="server" SkinID="Hidden" OnClick="btnReload_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
